package cn.school.system.domain;

import java.math.BigDecimal;

import cn.school.common.annotation.DataSource;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.school.common.annotation.Excel;
import cn.school.common.core.domain.BaseEntity;

/**
 * 商品信息对象 bi_good
 *
 * @author ruoyi
 * @date 2023-12-15
 */
@Data
public class BiGood extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID唯一标识 */
    private Long id;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String goodCode;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodName;

    /** 分组标签 */
    @Excel(name = "分组标签")
    private String groupTag;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal oldPrice;

    /** 现价 */
    @Excel(name = "现价")
    private BigDecimal price;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 纸条数量 */
    @Excel(name = "纸条数量")
    private Integer paperNum;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopId;

    /** 店铺电话 */
    @Excel(name = "店铺电话")
    private String shopPhone;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodCode", getGoodCode())
            .append("goodName", getGoodName())
            .append("groupTag", getGroupTag())
            .append("oldPrice", getOldPrice())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("paperNum", getPaperNum())
            .append("shopId", getShopId())
            .append("shopPhone", getShopPhone())
            .toString();
    }
}
